# 导包
import unittest
from scripts.test01_login import TestLogin
from tools.HTMLTestRunner import HTMLTestRunner
import time
# 封装测试套件
suite=unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLogin))
# 指定测试报告位置
# report="./report/report.html"
report = "./report/report.html"
with open(report,"wb")as f:

    # 创建HTMLTestRunner运行器
    runner = HTMLTestRunner(f, title = "tpshop接口报告")
    # 执行测试套件
    runner.run(suite)